package com.elisoft.emlap.goods.consumer.fallback;

import com.elisoft.emlap.common.Result;
import com.elisoft.emlap.goods.consumer.api.AppGoodsAPIService;
import org.springframework.stereotype.Component;

/**
 * @Author wuyanshen
 * @Date 2018-12-12 12:44 PM
 * @Discription AppGoodsAPIService接口的"服务降级"返回信息类
 */
@Component
public class AppGoodsFallBack implements AppGoodsAPIService {
    @Override
    public Result list() {
        return Result.fail("连接接口超时，服务降级，返回友好提示信息");
    }
}
